package com.chinaums.fsp.sdk.request;


import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.QueryDraftStatusRequest;
import com.chinaums.fsp.sdk.pgt.params.QueryDraftStatusResponse;
//汇票状态查询
public class DraftQueryStatusTest extends BaseRequest{

public void testRequest() throws Exception {
		
		PgtRequestFactory rf = FACTORY.factory();
		
		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.TRANSACTION_QUERY_STATUS.getTransCode());
		
		QueryDraftStatusRequest data = QueryDraftStatusRequest.newBuilder()
															.setOrigServerTransId("1101012020033016252452101306")
															.setOrigClientTransId("")
															.build()
															;
		rf.transType(TransType.TRANSACTION_QUERY_STATUS.getTransCode())
		.responseClass(QueryDraftStatusResponse.class)
		.data(data)
		;
		ResponseDataWrapper rdw = rf.post();
	
		this.print(rdw);
	}
	
}
